package com.unisyou;

import com.unisyou.constant.OperEnum;

import java.util.ArrayList;
import java.util.List;

public class Demo5 {
    public static void main(String[] args) {
        List<String> strList = new ArrayList<>();
        strList.add("中国联通");
        strList.add("中国移动");
        strList.add("中国电信");

        List<String> dataList = new ArrayList<>();
        dataList.add("中国联通");
        dataList.add("深圳");
        dataList.add("乱七八糟");
        dataList.add("测试");

        boolean flag = strList.retainAll(dataList);
        System.out.println(flag);
        System.out.println("dataList:"+dataList);
        System.out.println("strList:"+strList);
        System.out.println(OperEnum.getAbbr(strList.get(0)));
        System.out.println(OperEnum.CMCC.getChinese());
    }
}
